package com.manor.paradise.adapter.npcshop

import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.manor.paradise.R
import com.manor.paradise.bean.PropBean

class PropShopAdapter(layoutResId: Int, data: MutableList<PropBean.RecordsBean>?) : BaseQuickAdapter<PropBean.RecordsBean, BaseViewHolder>
(layoutResId, data) {

    override fun convert(helper: BaseViewHolder, item: PropBean.RecordsBean) {
        var im_img = helper.getView<ImageView>(R.id.im_img)

        Glide.with(context).load(item.imgUrl)
                .into(im_img)
        var tv_name = helper.getView<TextView>(R.id.tv_name)
        tv_name.setText(item.name)

    }


}